/****** Object:  Stored Procedure [dbo].spAccountUpdate Script Date: 6/12/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spAccountUpdate]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spAccountUpdate]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		22/06/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spAccountUpdate]
(
	@ID nvarchar(12),
	@Hoten nvarchar(35),
	@Diachi nvarchar(30),
	@SoDT nvarchar(15),
	@Email nvarchar(25),
	@Chucvu nvarchar(50),
	@Thongtinkhac nvarchar(300),
	@Role int
)

WITH ENCRYPTION

AS

SET NOCOUNT ON

UPDATE [tbl_Account]
SET [Hoten] = @Hoten,
	[Diachi] = @Diachi,
	[SoDT] = @SoDT,
	[Email] = @Email,
	[Chucvu] = @Chucvu,
	[Thongtinkhac] = @Thongtinkhac,
	[Role] = @Role
WHERE	[ID] = @ID
GO

--GRANT EXECUTE ON [dbo].[spAccountUpdate] TO [sa]
--GO
